package com.panghl.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.management.relation.Role;
import java.io.Serializable;
import java.util.List;

/**
 * ManagerInfo
 */
@Data
@NoArgsConstructor
public class ManagerInfo implements Serializable {

    private static final long serialVersionUID = 4711989161105430402L;
    private User user;
    //权限值
    private List<String> permissions;
    //角色值
    private List<String> roles;

    /**
     * 密码盐
     */
    public String getCredentialsSalt() {
        return user.getUserName() + user.getSalt();
    }

}